package com.inwavetech.os.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by jgskin on 2/10/14.
 */
public class DefaultDateFormatter {

    private static SimpleDateFormat formatter = null;

    public static String format (Date date) {
        if (formatter == null) {
            formatter = new SimpleDateFormat("d/M/yy");
        }

        return date != null ? formatter.format(date) : null;
    }

}
